<%@ include file="config.jsp" %>

<html>
<head>
<title>EDITAR CURSO</title>
</head>
    <body>
    	<div id="header">
			<%@ include file="header.jsp" %>
    	</div>	  
    	<div id="menu">
			<%@ include file="menu.jsp" %>
    	</div>	  
    	<div id="body">
    	<div class=error>
    		<ul>
		   		<c:forEach var="error" items="${errors}" > 
					<li>${error}</li>		   			
		   		</c:forEach>
    		</ul>
    	
    	
    	</div>
		<div class=message>${message}</div>
			<fieldset>
				<legend>Cadastro de Curso</legend>
				<form method="post" name="usuarioSistema" action="${pageContext.request.contextPath}/doeditarcurso">
					<input type="hidden" name="codigoCurso" value="${curso.codigoCurso}">
					<label>Nome do curso</label>
					<input type="text" name="nomeCurso" disabled="disabled" value="${curso.nomeCurso}" size="30" maxlength="50">
					
					<label>Data criacao</label>
					<input type="text" name="dataCriacao" disabled="disabled" value="<fmt:formatDate value="${curso.dataCriacao}" pattern="dd/MM/yyyy"/>" title="Ex. 21/11/2009" alt="Ex. 21/11/2009" size="10" maxlength="10">
					
					<label>Data autorizacao</label>
					<input type="text" name=dataAutorizacao disabled="disabled" value="<fmt:formatDate value="${curso.dataAutorizacao}" pattern="dd/MM/yyyy"/>" title="Ex. 21/11/2009" alt="Ex. 21/11/2009" size="10" maxlength="10">
					
					<label>Data reconhecimento</label>
					<input type="text" name="dataReconhecimento" disabled="disabled" value="<fmt:formatDate value="${curso.dataReconhecimento}" pattern="dd/MM/yyyy"/>" title="Ex. 21/11/2009" alt="Ex. 21/11/2009" size="10" maxlength="10">
					
					<label>Carga horaria</label>
					<input type="text" name="cargaHoraria" disabled="disabled" value="${curso.cargaHoraria}" size="4" maxlength="4">
					
					<label>Situacao</label>
					<select name="situacaoCurso">
						<option value="ATIVO" <c:if test="${curso.ativo}">selected="selected"</c:if> >Ativo</option>
						<option value="INATIVO" <c:if test="${curso.inativo}">selected="selected"</c:if>>Inativo</option>
					</select>
					
					<input type="submit" value="Atualizar">
				</form>
			</fieldset>
			
    	</div>	  
    	<div id="footer">
			<%@ include file="footer.jsp" %>
    	</div>	  
		      
    </body>  
</html>